#ifndef _CODE_H_
#define _CODE_H_

#include<string>
#include<sstream>
using namespace std;

class Code
{

public:
	Code();
        Code(string type, unsigned int number);
	virtual ~Code();

        // Type
	const string getType();
	void setType(string type);

        // Number
	unsigned int getNumber();
	void setNumber(string type);

        // I/O
        string printCode();
        void newCode(Code &code);

private:
	string type;    ///cli for client, wrk for worker
	unsigned int number;
        static unsigned int lastClientNumber;
        static unsigned int lastWorkerNumber;

};
#endif // _CODE_H_
